<?php
/**
 * @file $HeadURL: question.php $
 * @author $Author: Zhe.Zhou (zhouzhe@haibao.com) $
 * @date $Date: 2015-4-16 15:32:05 $
 * @
 */
namespace haibao\www\business;
use \haibao\www\business\BusinessException;
use \haibao\www\data\Question as QuestionData; 

class Question extends \haibao\www\business\Base{	
	public static function getQuestionById($questionId){
		if(!$questionId){
			return NULL;
		}
		$questionData = new QuestionData();
		return $questionData->getModelById($questionId);
	}
	public static function getQuestionList($questionFilter){
		self::checkOperation(self::FUNC_CODE_QUESTION_LIST);
		$questionData = new QuestionData();
		return $questionData->getLinkList($questionFilter);
	}
	public static function addQuestion($model){
		$questionData = new QuestionData();
		$questionData->add($model);
	}
	
}
